<template>
  <div>
      <ul v-if="currentSession">
          <li v-for="entry in sessions[user.username]+'#'+currentSession.username" 
          
          :key="entry">
              <p>
                  <span>{{entry.data | time}}</span>
              </p>
              <div :class="{self:entry.self}">
                  <img :src="entry.self ? user.userFace : currentSession.userFace" alt="">
              </div>
          </li>
      </ul>
  </div>
</template>

<script>
export default {
    data() {
        return {
            user:JSON.parse(window.sessionStorage.getItem('user'))
        }
    },
}
</script>

<style>

</style>